package com.wom.blockfeatures;

import java.awt.Color;
import java.awt.Graphics;

import com.wom.blocks.AbstractBlock;

import com.wom.worldmaker.GameProperties;
import com.wom.worldmaker.GameWorld;


public class BlockRenderer {
	
	
	
	public void  renderBlock(AbstractBlock b,Graphics g){


					g.drawImage(GameWorld.tileTextures,
					b.x-(int)GameWorld.player.cam.x, 
					b.y-(int)GameWorld.player.cam.y, 
					b.x+GameProperties.blockSize-(int)GameWorld.player.cam.x,b.y+GameProperties.blockSize-(int)GameWorld.player.cam.y,
					b.id[0]*GameProperties.blockSize,b.id[1]*GameProperties.blockSize,
					b.id[0]*GameProperties.blockSize+GameProperties.blockSize,b.id[1]*GameProperties.blockSize+GameProperties.blockSize, null);

		

	}	








	public void renderBlockFrame(AbstractBlock b,Graphics g,Color c){
		//g.setColor(c);
		//g.drawRect(b.getxPos()*GameProperties.blockSize-ThePlayer.cam.x, b.getyPos()*GameProperties.blockSize-ThePlayer.cam.y, GameProperties.blockSize, GameProperties.blockSize);

	}

}
